package com.slowfly.rule.engine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.slowfly.rule.engine.entity.Scene;
import com.slowfly.rule.engine.param.SceneParam;
import com.slowfly.rule.engine.result.PageResult;
import com.slowfly.rule.engine.result.SceneResult;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author shalongfei
 * @since 2024-02-22
 */
public interface ISceneService extends IService<Scene> {

    void setCache();

    void editCache(int type, int id);

    Scene get(Integer id);

    Scene getByCode(String code);

    List<SceneResult> listScene();

    PageResult<SceneResult> pageScene(SceneParam param);

    boolean addScene(SceneParam param);

    boolean editScene(SceneParam param);

    boolean deleteScene(SceneParam param);
}
